const { ccclass, property } = cc._decorator;

import i, { GuideElimitateType, GuideType } from "./MatchGameGuidePageCtrl"
import r from "./MatchGameConfig"
import n, { ObstacleAllType } from "./ObstacleConfig"
import MatchGameConfig from "./MatchGameConfig";

@ccclass
class MatchGameGuideData {
    public l

    public s

    public c

    public a

    static _instance: MatchGameGuideData;
    static getInstance() {
        if (!this._instance) {
            this._instance = new MatchGameGuideData();
        }
        return this._instance;
    }

    public getV3Pos(e: any) {
        var t = e.row,
            a = e.col;
        return cc.v3(t * MatchGameConfig.ITEM_WIDTH, -a * MatchGameConfig.ITEM_HEIGHT);
    }

    public getV3PosCenter(e: number, t: number) {
        return cc.v3(e * MatchGameConfig.ITEM_WIDTH + MatchGameConfig.ITEM_WIDTH / 2, -t * MatchGameConfig.ITEM_HEIGHT - MatchGameConfig.ITEM_HEIGHT / 2);
    }

    public getLevelGuideInfo(e) {
        var t: any[] = [];
        if (1 == e) {
            t.push({
                step: 1,
                level: 1,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 4,
                        col: 2
                    }),
                    type: 4
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 3,
                        col: 2
                    },
                    path: "level_1_1"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 350),
                    str: "<color=#BB4C1E>3个相同原素相连便可消除！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 2
                    },
                    moveType: GuideElimitateType.Right
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 1,
                    pos: {
                        row: 4,
                        col: 2
                    },
                    moveType: GuideElimitateType.Left
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 3
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }]
            });
            t.push({
                step: 2,
                level: 1,
                arrows: [{
                    pos: cc.v3(74, 299 + (cc.winSize.height - 1280) / 2),
                    dire: 3
                }],
                handInfo: null,
                guideType: GuideType.Target,
                showPande: false,
                bottoms: null,
                tipInfo: {
                    pos: new cc.Vec3(0, 200),
                    str: "<color=#BB4C1E>继续消除12个 </c><img src='Items-MatchItem-2' height=68 width=60 align=center/><color=#BB4C1E> 即可达成目标！</c>"
                },
                MatchGuideArr: null
            });
            t.push({
                step: 3,
                level: 1,
                arrows: [{
                    pos: cc.v3(74, 299 + (cc.winSize.height - 1280) / 2),
                    dire: 1
                }],
                handInfo: null,
                guideType: GuideType.GoldCoin,
                showPande: false,
                bottoms: null,
                tipInfo: {
                    pos: new cc.Vec3(0, -150),
                    str: "<color=#BB4C1E>每次消除都可获得金币，金币会在通关后给于！</c>"
                },
                MatchGuideArr: null
            });
        } else if (2 == e) {
            t.push({
                step: 1,
                level: 2,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 4,
                        col: 3
                    }),
                    type: 2
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 2,
                        col: 3
                    },
                    path: "level_2_1"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 300),
                    str: "<color=#BB4C1E>4个相同原素相连可以生成一个双头火箭 </c><img src='items-3'/><color=#BB4C1E> ！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 3
                    },
                    moveType: GuideElimitateType.Down
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 1,
                    pos: {
                        row: 4,
                        col: 4
                    },
                    moveType: GuideElimitateType.Up
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 2,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }]
            });
            t.push({
                step: 2,
                level: 2,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 4,
                        col: 4
                    }),
                    type: 4
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 3,
                        col: 4
                    },
                    path: "level_2_2"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 300),
                    str: "<color=#BB4C1E>任意移动双头火箭 </c><img src='items-3'/><color=#BB4C1E> 即可发射！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 4
                    },
                    moveType: GuideElimitateType.Left
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 1,
                    pos: {
                        row: 3,
                        col: 4
                    },
                    moveType: GuideElimitateType.Right
                }]
            });
            t.push({
                step: 3,
                level: 2,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 7,
                        col: 4
                    }),
                    type: 4
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 6,
                        col: 3
                    },
                    path: "level_2_3"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 300),
                    str: "<color=#BB4C1E>做得好，请再合成一个双头火箭！ </c><img src='items-2'/> "
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 6,
                        col: 3
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 1,
                    pos: {
                        row: 6,
                        col: 4
                    },
                    moveType: GuideElimitateType.Right
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 7,
                        col: 4
                    },
                    moveType: GuideElimitateType.Left
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 6,
                        col: 5
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 6,
                        col: 6
                    },
                    moveType: GuideElimitateType.Null
                }]
            });
            t.push({
                step: 4,
                level: 2,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 6,
                        col: 6
                    }),
                    type: 3
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 6,
                        col: 6
                    },
                    path: "one_item"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 300),
                    str: "<color=#BB4C1E>点一下双头火箭 </c><img src='items-2'/><color=#BB4C1E> 也能发射哦！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 6,
                        col: 6
                    },
                    moveType: GuideElimitateType.Click
                }]
            });
        } else if (3 == e) {
            t.push({
                step: 1,
                level: 3,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 6,
                        col: 4
                    }),
                    type: 4
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 3,
                        col: 2
                    },
                    path: "level_3_1"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 280),
                    str: "<color=#BB4C1E>类似这样的组合消除后会生成斑纹炸弹 </c><img src='items-4'/><color=#BB4C1E> ！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 2
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 1,
                    pos: {
                        row: 5,
                        col: 3
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 4
                    },
                    moveType: GuideElimitateType.Right
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 6,
                        col: 4
                    },
                    moveType: GuideElimitateType.Left
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }]
            });
            t.push({
                step: 2,
                level: 3,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 5,
                        col: 4
                    }),
                    type: 4
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 4,
                        col: 4
                    },
                    path: "level_2_2"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 200),
                    str: "<color=#BB4C1E>棒！这样可以引爆它！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 4
                    },
                    moveType: GuideElimitateType.Left
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 4
                    },
                    moveType: GuideElimitateType.Right
                }]
            });
            t.push({
                step: 3,
                level: 3,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 5,
                        col: 1
                    }),
                    type: 2
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 4,
                        col: 1
                    },
                    path: "level_3_3"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 370),
                    str: "<color=#BB4C1E>太棒了！ </c><img src='items-4'/><color=#BB4C1E> 这样也能合成！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 1
                    },
                    moveType: GuideElimitateType.Down
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 1,
                    pos: {
                        row: 5,
                        col: 2
                    },
                    moveType: GuideElimitateType.Up
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 3
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 2
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 6,
                        col: 2
                    },
                    moveType: GuideElimitateType.Null
                }]
            });
            t.push({
                step: 4,
                level: 3,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 5,
                        col: 4
                    }),
                    type: 3
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 5,
                        col: 4
                    },
                    path: "one_item"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 300),
                    str: "<color=#BB4C1E>点击！引爆！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 4
                    },
                    moveType: GuideElimitateType.Click
                }]
            });
        } else if (4 == e) {
            t.push({
                step: 1,
                level: 4,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 5,
                        col: 3
                    }),
                    type: 4
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 3,
                        col: 3
                    },
                    path: "level_4_1"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 250),
                    str: "<color=#BB4C1E>这样组合便可生成陀螺 </c><img src='items-1'/><color=#BB4C1E> ！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 3
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 1,
                    pos: {
                        row: 4,
                        col: 3
                    },
                    moveType: GuideElimitateType.Right
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 3
                    },
                    moveType: GuideElimitateType.Left
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }]
            });
            t.push({
                step: 2,
                level: 4,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 4,
                        col: 4
                    }),
                    type: 4
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 3,
                        col: 4
                    },
                    path: "level_2_2"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 300),
                    str: "<color=#BB4C1E>拖动可以启动它，试试吧！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 4
                    },
                    moveType: GuideElimitateType.Right
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 4
                    },
                    moveType: GuideElimitateType.Left
                }]
            });
            t.push({
                step: 3,
                level: 4,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 5,
                        col: 4
                    }),
                    type: 2
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 4,
                        col: 4
                    },
                    path: "level_4_3"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 300),
                    str: "<color=#BB4C1E>我们再生成一个陀螺 </c><img src='items-1'/><color=#BB4C1E> ！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 5
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 1,
                    pos: {
                        row: 5,
                        col: 5
                    },
                    moveType: GuideElimitateType.Up
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 4
                    },
                    moveType: GuideElimitateType.Down
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 6
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 6
                    },
                    moveType: GuideElimitateType.Null
                }]
            });
            t.push({
                step: 4,
                level: 4,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 5,
                        col: 6
                    }),
                    type: 3
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 5,
                        col: 6
                    },
                    path: "one_item"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 300),
                    str: "<color=#BB4C1E>点击即可启动！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 6
                    },
                    moveType: GuideElimitateType.Click
                }]
            });
        } else if (5 == e) {
            t.push({
                step: 1,
                level: 5,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 4,
                        col: 3
                    }),
                    type: 2
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 2,
                        col: 3
                    },
                    path: "level_5_1"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 250),
                    str: "<color=#BB4C1E>5个相同原素连成一线可以生成辐射球 </c><img src='items-5'/><color=#BB4C1E> ！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 3
                    },
                    moveType: GuideElimitateType.Down
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 1,
                    pos: {
                        row: 4,
                        col: 4
                    },
                    moveType: GuideElimitateType.Up
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 2,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 6,
                        col: 4
                    },
                    moveType: GuideElimitateType.Null
                }]
            });
            t.push({
                step: 2,
                level: 5,
                arrows: [],
                handInfo: {
                    pos: this.getV3Pos({
                        row: 4,
                        col: 4
                    }),
                    type: 1
                },
                guideType: GuideType.Match,
                showPande: true,
                bottoms: [{
                    pos: {
                        row: 4,
                        col: 4
                    },
                    path: "level_2_2"
                }],
                tipInfo: {
                    pos: new cc.Vec3(0, 300),
                    str: "<color=#BB4C1E>将它与相邻原素交换，便可消灭画面中相同的原素！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 4
                    },
                    moveType: GuideElimitateType.Left
                }, {
                    squareType: r.SquareType.PropItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 4
                    },
                    moveType: GuideElimitateType.Right
                }]
            });
        } else if (6 == e) {
            t.push({
                step: 1,
                level: 8,
                arrows: [{
                    pos: cc.v3(74, 299 + (cc.winSize.height - 1280) / 2),
                    dire: 1
                }],
                handInfo: null,
                guideType: GuideType.Hammer,
                showPande: false,
                bottoms: null,
                tipInfo: {
                    pos: new cc.Vec3(0, 0),
                    str: "<color=#BB4C1E>点击启动大力锤！</c>"
                },
                MatchGuideArr: null
            });
            t.push({
                step: 2,
                level: 8,
                arrows: null,
                handInfo: {
                    pos: this.getV3Pos({
                        row: 4,
                        col: 2
                    }),
                    type: 3
                },
                guideType: GuideType.Hammer,
                showPande: true,
                bottoms: null,
                tipInfo: {
                    pos: new cc.Vec3(0, -200),
                    str: "<color=#BB4C1E>点击任意原素将其消除！</c>"
                },
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }]
            });
        } else if (7 == e) {
            t.push({
                step: 1,
                level: 14,
                arrows: [{
                    pos: cc.v3(74, 299 + (cc.winSize.height - 1280) / 2),
                    dire: 1
                }],
                handInfo: null,
                guideType: GuideType.Arrow,
                showPande: false,
                bottoms: null,
                tipInfo: {
                    pos: new cc.Vec3(0, -150),
                    str: "<color=#BB4C1E>彩虹箭可以对任意一【横】消除！</c>"
                },
                MatchGuideArr: null
            });
            t.push({
                step: 2,
                level: 14,
                arrows: null,
                handInfo: null,
                guideType: GuideType.Arrow,
                showPande: false,
                bottoms: null,
                tipInfo: null,
                MatchGuideArr: [{
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 0,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 1,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 2,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 3,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 4,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 5,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 6,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 7,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }, {
                    squareType: r.SquareType.MatchItem,
                    itemType: 2,
                    pos: {
                        row: 8,
                        col: 2
                    },
                    moveType: GuideElimitateType.Click
                }],
                swallowTouch: true
            });
        } else if (8 == e) {
            t.push({
                step: 1,
                level: 17,
                arrows: [{
                    pos: cc.v3(74, 299 + (cc.winSize.height - 1280) / 2),
                    dire: 1
                }],
                handInfo: null,
                guideType: GuideType.Gun,
                showPande: false,
                bottoms: null,
                tipInfo: {
                    pos: new cc.Vec3(0, -150),
                    str: "<color=#BB4C1E>迫击炮可以对任意一【竖】消除！</c>"
                },
                MatchGuideArr: null
            });
            t.push({
                step: 2,
                level: 14,
                arrows: null,
                handInfo: null,
                guideType: GuideType.Gun,
                showPande: false,
                bottoms: null,
                tipInfo: null,
                MatchGuideArr: [
                    {
                        squareType: r.SquareType.MatchItem,
                        itemType: 2,
                        pos: {
                            row: 4,
                            col: 0
                        },
                        moveType: GuideElimitateType.Click
                    },
                    {
                        squareType: r.SquareType.MatchItem,
                        itemType: 2,
                        pos: {
                            row: 4,
                            col: 1
                        },
                        moveType: GuideElimitateType.Click
                    },
                    {
                        squareType: r.SquareType.MatchItem,
                        itemType: 2,
                        pos: {
                            row: 4,
                            col: 2
                        },
                        moveType: GuideElimitateType.Click
                    },
                    {
                        squareType: r.SquareType.MatchItem,
                        itemType: 2,
                        pos: {
                            row: 4,
                            col: 3
                        },
                        moveType: GuideElimitateType.Click
                    },
                    {
                        squareType: r.SquareType.MatchItem,
                        itemType: 2,
                        pos: {
                            row: 4,
                            col: 4
                        },
                        moveType: GuideElimitateType.Click
                    },
                    {
                        squareType: r.SquareType.MatchItem,
                        itemType: 2,
                        pos: {
                            row: 4,
                            col: 5
                        },
                        moveType: GuideElimitateType.Click
                    },
                    {
                        squareType: r.SquareType.MatchItem,
                        itemType: 2,
                        pos: {
                            row: 4,
                            col: 6
                        },
                        moveType: GuideElimitateType.Click
                    },
                    {
                        squareType: r.SquareType.MatchItem,
                        itemType: 2,
                        pos: {
                            row: 4,
                            col: 7
                        },
                        moveType: GuideElimitateType.Click
                    },
                    {
                        squareType: r.SquareType.MatchItem,
                        itemType: 2,
                        pos: {
                            row: 4,
                            col: 8
                        },
                        moveType: GuideElimitateType.Click
                    }
                ],
                skillPass: true
            });
        } else 9 == e ? t.push({
            step: 1,
            level: 6,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 300),
                str: "<color=#BB4C1E>在木盒 </c><img src='WoodenBox_1'/><color=#BB4C1E> 旁消除1次就能破坏它！</c>"
            },
            obstacleType: ObstacleAllType.WoodenBox,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 10 == e ? t.push({
            step: 1,
            level: 13,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 300),
                str: "<color=#BB4C1E>在柜子 </c><img src='cupboard_close'/><color=#BB4C1E> 旁消除多次就能破坏它！</c>"
            },
            obstacleType: ObstacleAllType.cupboard,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 11 == e ? t.push({
            step: 1,
            level: 21,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 400),
                str: "<color=#BB4C1E>在邮筒 </c><img src='MailBox'/><color=#BB4C1E> 旁消除就能获得信件 </c><img src='Mail'/><color=#BB4C1E> ！</c>"
            },
            obstacleType: ObstacleAllType.MailBox,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 12 == e ? t.push({
            step: 1,
            level: 31,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 200),
                str: "<color=#BB4C1E>在蛋 </c><img src='Egg_1'/><color=#BB4C1E> 旁消除1次就能破坏它！</c>"
            },
            obstacleType: ObstacleAllType.Egg,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 13 == e ? t.push({
            step: 1,
            level: 41,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 400),
                str: "<color=#BB4C1E>在药水瓶旁消除原素，能破坏<br/>颜色相同的药水瓶！</c>"
            },
            obstacleType: ObstacleAllType.ColorBottle,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 14 == e ? t.push({
            step: 1,
            level: 61,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 300),
                str: "<color=#BB4C1E>在陶瓷 </c><img src='Vase_2'/><color=#BB4C1E> 旁消除2次就能破坏它！</c>"
            },
            obstacleType: ObstacleAllType.Vase,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 15 == e ? t.push({
            step: 1,
            level: 71,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 400),
                str: "<color=#BB4C1E>在躲猫猫 </c><img src='GrassLand_3'/><color=#BB4C1E> 旁消除5次能铺出草地！</c>"
            },
            obstacleType: ObstacleAllType.GrassLand,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 16 == e ? t.push({
            step: 1,
            level: 91,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 400),
                str: "<color=#BB4C1E>用道具攻击保险箱 </c><img src='SafeBox_5'/><color=#BB4C1E> 5次即可破坏它！</c>"
            },
            obstacleType: ObstacleAllType.SafeBox,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 17 == e ? t.push({
            step: 1,
            level: 101,
            arrows: [{
                pos: cc.v3(this.getV3PosCenter(0, 2)),
                dire: 1
            }, {
                pos: cc.v3(this.getV3PosCenter(2, 2)),
                dire: 1
            }, {
                pos: cc.v3(this.getV3PosCenter(5, 2)),
                dire: 1
            }, {
                pos: cc.v3(this.getV3PosCenter(7, 2)),
                dire: 1
            }],
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, -100),
                str: "<color=#BB4C1E>把小鸟 </c><img src='Bird_1'/><color=#BB4C1E> 送到底部来收集！</c>"
            },
            obstacleType: ObstacleAllType.Bird,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 18 == e ? t.push({
            step: 1,
            level: 121,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 300),
                str: "<color=#BB4C1E>在 </c><img src='ColorBox-color_box_goal'/><color=#BB4C1E> 旁消除相同颜色的原素就能打破它！</c>"
            },
            obstacleType: ObstacleAllType.ColorBox,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 19 == e ? t.push({
            step: 1,
            level: 141,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 300),
                str: "<color=#BB4C1E>在 </c><img src='Icicle_one'/><color=#BB4C1E> 旁任意消除就能缩短它！</c>"
            },
            obstacleType: ObstacleAllType.Icicle,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 20 == e ? t.push({
            step: 1,
            level: 181,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 300),
                str: "<color=#BB4C1E>收集指定数量的原素就能揭开帘子！</c>"
            },
            obstacleType: ObstacleAllType.curtain,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 21 == e ? t.push({
            step: 1,
            level: 201,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: [{
                pos: {
                    row: 1,
                    col: 2
                },
                path: "level_201"
            }],
            tipInfo: {
                pos: new cc.Vec3(0, 400),
                str: "<color=#BB4C1E>在贝壳 </c><img src='Oyster_1'/><color=#BB4C1E> 旁消除3次就能收获珍珠！</c>"
            },
            obstacleType: ObstacleAllType.Oyster,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 22 == e ? t.push({
            step: 1,
            level: 231,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: [{
                pos: {
                    row: 1,
                    col: 1
                },
                path: "one_item"
            }, {
                pos: {
                    row: 5,
                    col: 1
                },
                path: "one_item"
            }, {
                pos: {
                    row: 1,
                    col: 6
                },
                path: "one_item"
            }, {
                pos: {
                    row: 5,
                    col: 6
                },
                path: "one_item"
            }],
            tipInfo: {
                pos: new cc.Vec3(0, 300),
                str: "<color=#BB4C1E>在魔法帽 </c><img src='MagicHat_open'/><color=#BB4C1E> 旁边消除3次就能生成钻石 </c><img src='Items-MatchItem-5'/><color=#BB4C1E> ！</c>"
            },
            obstacleType: ObstacleAllType.MagicHat,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 23 == e ? t.push({
            step: 1,
            level: 261,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: [{
                pos: {
                    row: 1,
                    col: 1
                },
                path: "one_item"
            }, {
                pos: {
                    row: 1,
                    col: 4
                },
                path: "one_item"
            }, {
                pos: {
                    row: 1,
                    col: 7
                },
                path: "one_item"
            }, {
                pos: {
                    row: 7,
                    col: 1
                },
                path: "one_item"
            }, {
                pos: {
                    row: 7,
                    col: 4
                },
                path: "one_item"
            }, {
                pos: {
                    row: 7,
                    col: 7
                },
                path: "one_item"
            }, {
                pos: {
                    row: 4,
                    col: 1
                },
                path: "one_item"
            }, {
                pos: {
                    row: 4,
                    col: 7
                },
                path: "one_item"
            }],
            tipInfo: {
                pos: new cc.Vec3(0, 300),
                str: "<color=#BB4C1E>在盆栽 </c><img src='Flowerpot_2'/><color=#BB4C1E> 旁消除2次就可以展开落叶！</c>"
            },
            obstacleType: ObstacleAllType.Flowerpot,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 24 == e ? t.push({
            step: 1,
            level: 9,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 400),
                str: "<color=#BB4C1E>在草地 </c><img src='Grass_1'/><color=#BB4C1E> 上消除1次来清理它！</c>"
            },
            obstacleType: ObstacleAllType.Grass,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 25 == e ? t.push({
            step: 1,
            level: 81,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 0),
                str: "<color=#BB4C1E>在蛛网 </c><img src='Honey_1'/><color=#BB4C1E> 旁消除即可清理它！</c>"
            },
            obstacleType: ObstacleAllType.Honey,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 26 == e ? t.push({
            step: 1,
            level: 61,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 0),
                str: "<color=#BB4C1E>用道具攻击 </c><img src='Stone_1'/><color=#BB4C1E> 即可破坏它！</c>"
            },
            obstacleType: ObstacleAllType.Stone,
            MatchGuideArr: [{
                squareType: r.SquareType.PropItem,
                itemType: 2,
                pos: {
                    row: 0,
                    col: 0
                },
                moveType: GuideElimitateType.Click
            }, {
                squareType: r.SquareType.PropItem,
                itemType: 2,
                pos: {
                    row: 8,
                    col: 0
                },
                moveType: GuideElimitateType.Click
            }, {
                squareType: r.SquareType.PropItem,
                itemType: 2,
                pos: {
                    row: 1,
                    col: 9
                },
                moveType: GuideElimitateType.Click
            }, {
                squareType: r.SquareType.PropItem,
                itemType: 2,
                pos: {
                    row: 7,
                    col: 9
                },
                moveType: GuideElimitateType.Click
            }, {
                squareType: r.SquareType.PropItem,
                itemType: 2,
                pos: {
                    row: 4,
                    col: 0
                },
                moveType: GuideElimitateType.Click
            }],
            bottomAllUp: true,
            swallowTouch: true
        }) : 27 == e ? t.push({
            step: 1,
            level: 161,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 200),
                str: "<color=#BB4C1E>用道具攻击 </c><img src='PorcelainPig_1'/><color=#BB4C1E> 即可破坏它！</c>"
            },
            obstacleType: ObstacleAllType.PorcelainPig,
            MatchGuideArr: [{
                squareType: r.SquareType.PropItem,
                itemType: 2,
                pos: {
                    row: 4,
                    col: 4
                },
                moveType: GuideElimitateType.Click
            }],
            swallowTouch: true
        }) : 28 == e ? t.push({
            step: 1,
            level: 301,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 200),
                str: "<color=#BB4C1E>用道具攻击 </c><img src='Stone_3'/><color=#BB4C1E> 3次即可破坏它！</c>"
            },
            obstacleType: ObstacleAllType.Stone,
            MatchGuideArr: [{
                squareType: r.SquareType.PropItem,
                itemType: 2,
                pos: {
                    row: 4,
                    col: 3
                },
                moveType: GuideElimitateType.Click
            }],
            swallowTouch: true
        }) : 29 == e ? t.push({
            step: 1,
            level: 20,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 300),
                str: "<color=#BB4C1E>这是金币关！收集尽可能多的金币 </c><img src='GoldCoin_1'/><color=#BB4C1E> 吧！</c>"
            },
            obstacleType: ObstacleAllType.GoldCoin,
            MatchGuideArr: [{
                squareType: r.SquareType.PropItem,
                itemType: 2,
                pos: {
                    row: 4,
                    col: 3
                },
                moveType: GuideElimitateType.Any
            }, {
                squareType: r.SquareType.PropItem,
                itemType: 2,
                pos: {
                    row: 4,
                    col: 4
                },
                moveType: GuideElimitateType.Any
            }],
            swallowTouch: true
        }) : 30 == e ? t.push({
            step: 1,
            level: 351,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 200),
                str: "<color=#BB4C1E>在爆炸盒旁消除原素，能引爆相同颜色的鞭炮，消除所有蜡鞭炮就能引爆爆炸盒！ </c>"
            },
            obstacleType: ObstacleAllType.Candlebox,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 31 == e ? t.push({
            step: 1,
            level: 401,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 200),
                str: "<color=#BB4C1E>在杯子旁消除1次就能破坏它，打破全部杯子就能清除架子！ </c>"
            },
            obstacleType: ObstacleAllType.CupHolder,
            MatchGuideArr: null,
            swallowTouch: true
        }) : 32 == e ? t.push({
            step: 1,
            level: 451,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 200),
                str: "<color=#BB4C1E>在鸟巢旁消除5次来解放小鸟！</c>"
            },
            obstacleType: ObstacleAllType.BirdNest,
            MatchGuideArr: null,
            swallowTouch: false
        }) : 33 == e && t.push({
            step: 1,
            level: 501,
            arrows: null,
            handInfo: null,
            guideType: GuideType.Obstacle,
            showPande: true,
            bottoms: null,
            tipInfo: {
                pos: new cc.Vec3(0, 200),
                str: "<color=#BB4C1E>用道具攻击石头，然后在旁边消除1次就能收获宝石！ </c>"
            },
            obstacleType: ObstacleAllType.Rock,
            MatchGuideArr: null,
            swallowTouch: false
        });
        return t;
    };
}

export default MatchGameGuideData.getInstance();


